package com.myblog.controller;

import com.myblog.annotation.Log;
import com.myblog.domain.GlobalResponse;
import com.myblog.services.LinkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/link")
@Api(tags = "友链控制器")
public class LinkController {
    @Resource
    LinkService linkService;
    @GetMapping("/getAllLink")
    @Log(BusinessName = "获取友链")
    @ApiOperation(value = "获取友链")
    public GlobalResponse getAllLink(){
        return linkService.getAllLink();
    }
}
